Package com.amazon.A3L.messaging.FCM
Class FCMMessagingHelper
- java.lang.Object
-
- com.amazon.A3L.messaging.FCM.FCMMessagingHelper
-
public class FCMMessagingHelper extends java.lang.ObjectHelper class for Firebase Cloud Messaging (FCM)
-
-
Constructor Summary
Constructors Constructor Description FCMMessagingHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisFCMAvailable(android.content.Context context)Method which checks if FCM is available on deviceandroid.content.IntenttransformFCMMessageIntoIntent(com.google.firebase.messaging.RemoteMessage remoteMessage)Transforms FCM remote message to intent which can be sent to A3LMessaging interfacestatic NotificationtransformFCMNotificationToA3LNotification(com.google.firebase.messaging.RemoteMessage.Notification notification)Method to transform FCM notification into an A3LNotification
-
-
-
Method Detail
-
isFCMAvailable
public boolean isFCMAvailable(@NonNull android.content.Context context)Method which checks if FCM is available on device- Parameters:
context- : Application Context- Returns:
- true if FCM is present else otherwise
-
transformFCMMessageIntoIntent
public android.content.Intent transformFCMMessageIntoIntent(@NonNull com.google.firebase.messaging.RemoteMessage remoteMessage)Transforms FCM remote message to intent which can be sent to A3LMessaging interface- Parameters:
remoteMessage- : FCM Remote message- Returns:
- Transformed intent
-
transformFCMNotificationToA3LNotification
public static Notification transformFCMNotificationToA3LNotification(com.google.firebase.messaging.RemoteMessage.Notification notification)
Method to transform FCM notification into an A3LNotification- Parameters:
notification- : FCM RemoteMessageNotification- Returns:
- A3LNotification
-
-